package com.xxx.shetuan3.service;

import com.xxx.shetuan3.common.CommonResult;
import com.xxx.shetuan3.pojo.Organization;
import com.xxx.shetuan3.pojo.StudentAndOrganization;
import com.xxx.shetuan3.pojo.User;
import org.springframework.web.bind.annotation.RequestParam;

import javax.validation.constraints.NotNull;
import java.util.List;

public interface StudentService {
    /**
     * 查询个人信息
     */
    public User findUserByUserId(Integer userId);
    public boolean updateStudent(User user);
    public boolean joinOrganization(StudentAndOrganization studentAndOrganization);
    public List<StudentAndOrganization> queryAllUnacceptedOrganizations(Integer studentId, Integer start, Integer size);
    public List<Organization> queryAllJoinedOrganizations(Integer studentId,Integer start, Integer size);
    public List<Organization> queryAllOrganizations(Integer start, Integer size);
    public boolean exitOrganization(Integer studentId, Integer organizationId);

}
